﻿using Entity;
using System;
using System.Collections.Generic;
using System.Text;
using Utils;

namespace DataBaseConnect.App
{
    public interface IDepartmentAppService
    {
        /// <summary>
        /// 获取所有部门&&查询
        /// </summary>
        /// <returns></returns>
        List<Department> GetDepartmentList(string DepartmenName);

        /// <summary>
        /// 新增部门信息
        /// </summary>
        /// <param name="Input">部门信息实体</param>
        /// <returns></returns>
        ReceiveStatus AddDepartmentMsg(Department Input);

        /// <summary>
        /// 根据主键获取部门信息
        /// </summary>
        /// <param name="UserId">主键</param>
        /// <returns></returns>
        Department GetDepartmentFirst(int DepartmenId);

        /// <summary>
        /// 编辑部门信息
        /// </summary>
        /// <param name="Input">部门信息实体</param>
        /// <returns></returns>
        ReceiveStatus EditDepartmentMsg(Department Input);
    }
}
